package com.liu.user.advice;

import com.liu.user.exception.UserLoginException;
import entity.Result;

import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@RestControllerAdvice
public class UserLoginExceptionAdivice {

    @ExceptionHandler(UserLoginException.class)
    public Result UserExceptionDetail(Exception e){
        return  new Result(false,10010,e.getMessage());
    }


}
